Skip to content

Drop Python 3.10/3.11 support, require Python 3.12+#262

Merged
mborgerson merged 6 commits intomasterfrom
copilot/update-python-minimum-version-3-12
Apr 27, 2026
Merged

Drop Python 3.10/3.11 support, require Python 3.12+#262
mborgerson merged 6 commits intomasterfrom
copilot/update-python-minimum-version-3-12

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 27, 2026

  • Update pyproject.toml: remove 3.10/3.11 classifiers, add 3.14 classifier, set requires-python = ">=3.12", update tool.black target-version to py312
  • Update .github/workflows/build.yml: change lint/build_sdist python-version from 3.10 → 3.12, remove cp310/cp311 from wheel matrix
  • Fix lint job failure: add setuptools to pip install in lint step (pylint was failing on setup.py with E0401: Unable to import 'setuptools')
  • Update .pre-commit-config.yaml: change pyupgrade arg from --py38-plus to --py312-plus
Original prompt

Update the angr/pypcode repository to require Python 3.12+ as the minimum supported Python version.

Scope:

  • Identify and update all project metadata/config that declares supported Python versions, including but not limited to: pyproject.toml / setup.cfg / setup.py, classifiers, requires-python, packaging/build configuration, and any CI/test matrices.
  • Update GitHub Actions workflow .github/workflows/build.yml so it no longer uses Python 3.10 for lint/build_sdist and uses 3.12+ as appropriate.
    • Ensure wheel build matrix does not include versions lower than 3.12 (remove cp310/cp311 as needed).
    • Ensure test coverage job uses a supported Python (>=3.12).
  • Update documentation (README/docs) that mentions supported Python versions.
  • Run/adjust tests or tooling config if any are pinned to older Python versions.

Acceptance criteria:

  • Packaging metadata enforces Python>=3.12.
  • CI only runs (and wheels only build) for Python versions >=3.12.
  • Any references to older minimum versions are removed/updated.
  • Changes are consistent across code, docs, and CI.

Files of interest:

  • .github/workflows/build.yml (currently uses python-version: 3.10 for lint and sdist; wheel matrix includes cp310-cp314)

Create a pull request with these changes.

The following is the prior conversation context from the user's chat exploration (may be truncated):

User: Let's move the minimum Python version to 3.12

Assistant: I’m waiting on your confirmation in the approval dialog to proceed with applying the changes to bump the repository’s minimum supported Python version to 3.12 and update the CI/build configuration accordingly.

This pull request was created from Copilot chat.

Agent-Logs-Url: https://github.com/angr/pypcode/sessions/2b1a0c4d-dfad-454c-93c3-893b6a21e83f

Co-authored-by: mborgerson <8210+mborgerson@users.noreply.github.com>
Copilot AI changed the title [WIP] Update project to require Python 3.12+ as minimum supported version Drop Python 3.10/3.11 support, require Python 3.12+ Apr 27, 2026
Copilot AI requested a review from mborgerson April 27, 2026 20:51
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.60%. Comparing base (50cfc2f) to head (f64d749).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #262      +/-   ##
==========================================
+ Coverage   86.57%   86.60%   +0.02%     
==========================================
  Files           5        5              
  Lines         514      515       +1     
  Branches       82       82              
==========================================
+ Hits          445      446       +1     
  Misses         27       27              
  Partials       42       42              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mborgerson
Copy link
Copy Markdown
Member

@copilot Fix lint job failure issues

Copy link
Copy Markdown
Contributor Author

Copilot AI commented Apr 27, 2026

@copilot Fix lint job failure issues

Fixed in commit 1c16253. The lint job was failing because setuptools wasn't installed in the lint environment, causing pylint to report E0401: Unable to import 'setuptools' on setup.py. Added setuptools to the pip install step. Also updated the pyupgrade pre-commit hook arg from --py38-plus to --py312-plus to match the new minimum version.

@mborgerson
Copy link
Copy Markdown
Member

pre-commit.ci autofix

@mborgerson
Copy link
Copy Markdown
Member

pre-commit.ci autofix

@mborgerson mborgerson marked this pull request as ready for review April 27, 2026 23:06
@mborgerson mborgerson merged commit 1e972f2 into master Apr 27, 2026
46 checks passed
@mborgerson mborgerson deleted the copilot/update-python-minimum-version-3-12 branch April 27, 2026 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants